package jdbc;

import java.sql.Connection;
import java.sql.DriverManager;

//本类是用来测试jdbc的演示demo
public class TestConnection {
    public static void main(String[] args) throws Exception {
        Class.forName("com.mysql.jdbc.Driver");
        String url = "jdbc:mysql://localhost:3306/tedu?useUnicode=true&characterEncoding=utf8";
        String user = "root";
        String pwd = "root";
        Connection conn = DriverManager.getConnection(url,user,pwd);
        System.out.println("链接成功**");

    }
}
